<?php
	ob_start(); 
	session_start();
	ob_clean();
	$user_id =$_SESSION['user_id'];
	include "includes/config.php";
	include "includes/global.php";
	include "includes/xtpl.php";
	
	//define forcing table
	define ("TBL_THEMATIC","tbl_callcenter_lucluongnganh");	
	//define the thematic folder 
	define ("FOLDER_THEMATIC","lucluongnganh");
	//define the thematic prefix 
	define ("PREFIX_THEMATIC","lucluongnganh");	
	
	include("sites/footer.php");	
	include("sites/BannerTop.php");		
/* 	include("sites/Banner.php");	 */
	include("sites/Menu.php");
 	include("sites/toolbar/home.php");	 
	global $base_url;
	global $openlayer_url;
	global $jquery_url;
	global $map_api_key;	
	
	$err="";
	$do_save=0;
	$data=array();
	include("sites/left/left.php");		

/* 	include("sites/left/catch/catch.php");	 */	
	//include("sites/left/layers.php");		
	include("sites/Map.php");			
	$tpl = new XTemplate("views/index.htm");
	$tpl->assign('Left',$Left);		
/* 	$tpl->assign('catch',$catch);			 */
	$tpl->assign('Map',$Map);				
	$tpl->assign('footer',$footer);		
	$tpl->assign('BannerTop',$BannerTop);			
/* 	$tpl->assign('Banner',$Banner);	 */			
	$tpl->assign('Menu',$Menu);					
 	$tpl->assign('Toolbar',$Toolbar);	 
	$tpl->assign('base_url',$base_url);
	$tpl->assign('openlayer_url',$openlayer_url);	
	$tpl->assign('jquery_url',$jquery_url);		
	
	$tpl->assign('tbl_thematic',TBL_THEMATIC);
	$tpl->assign('map_api_key',$map_api_key);	
	
	$tpl->parse('MAIN');
	$tpl->out('MAIN');	
?>